package com.bf.xpdd.service;

import com.bf.xpdd.domain.ActivityRecordBean;
import com.bf.xpdd.domain.FrontBean;
import com.bf.xpdd.domain.SiteBuyer;
import com.bf.xpdd.exception.BaseException;

/**
 * 交互部分service
 * @author Fantastic
 * @version 1.0.0 2011-06-25
 * @since 1.0.0
 */
public interface FrontService
{
	/**
	 * 获取活动信息
	 * @return
	 * @throws BaseException
	 */
	FrontBean findFrontActivity(String nick, int start, int end) throws BaseException;

	/**
	 * 获取具体商品信息
	 * @param sellerNick
	 * @return
	 */
	FrontBean findFrontItemDetail(String sellerNick, String itemId) throws BaseException;

	/**
	 * 讨价还价处理
	 * @param itemId
	 * @param price
	 * @param bid
	 * @return
	 */
	FrontBean bargain(long itemId, double price, int plan, SiteBuyer buyer) throws BaseException;

	/**
	 * find Activity Record Info By Item
	 * @param itemId
	 * @return
	 */
	ActivityRecordBean findActivityRecordInfoByItem(String itemId) throws BaseException;
}
